# -*- coding: utf-8 -*-
from business.首页.会议管理系统.会议审核.会议审核 import ReviewMeeting
from common.base_driver import BaseDriver
from common.base_action import BaseAction
from common.path import ensure_path_sep
from common.read_yaml import read_yaml
from page.首页.会议管理系统.会后.会后总结列表 import 公共, 店内会_OTC组
from business.首页.聚合页 import Home
from common.gol import get_value
from business.首页.会议管理系统.会后.会后总结.公共 import Public


data = read_yaml()["meeting"]
text = data["text"]
photo_path = ensure_path_sep(data["photo_path"])
pdf_path = ensure_path_sep(data["pdf_path"])

class SummaryMeeting(BaseAction):
    def __init__(self, driver):
        super().__init__(driver)

    def 总结_店内会_OTC组(self):
        pubic = Public(self.driver)
        pubic.打开_会议总结_填写()
        self.click(店内会_OTC组.上传照片)
        self.upload_file(photo_path)
        pubic.下一步()
        if pubic.断言_总结页下一步_是否成功():
            pubic.总结页_保存()
        return pubic.断言_会议总结_是否成功()